<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class Talent extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'talents';

    protected $fillable = [
        'user_id',
        'company_name',
        'contact_name',
        'sex',
        'contact_phone'
    ];

    protected $attributes = [
        'status' => 1
    ];

    public function user()
    {
        return $this->belongsTo(User::class,'user_id','id');
    }
}
